Segmenting and Filling Bone
As outlined in the topic Bone Analysis Workflow, Dragonfly's Bone Analysis module may require a number of pre-processing steps to prepare a sample for import into the module and computation of mappings and morphometric indices. Pre-processing can include reorienting image data, cropping to reduce data size and to isolate a bone of interest, and filtering to enhance data for segmentation.
The first step in the workflow lets you segment the selected bone image and fill the initial segmentation.
An initial bone segmentation is required to guide the automated cortical and trabecular segmentation process for generating the inputs for computing morphometric indices and mappings of anisotropy and volume fraction. In most cases, the initial bone segmentation region of interest can be extracted from a threshold range (see Creating Threshold Segmentations) applied to the image data, as described below.
- Pre-process your image data, as required (see Data Preprocessing).
-
Right-click the image data from the required bone study in the Data Properties and Settings panel and then choose Bone Analysis Wizard in the pop-up to open the Bone Analysis Wizard.
The image data appears in a 2 by 2 layout in the Bone Analysis Wizard.
- Adjust window leveling, as required (see Window Leveling).
- Select the BoneROI region of interest on the Data Properties and Settings panel, as shown below.

- Click the Segment tab on the left sidebar to access the ROI Tools panel.
- Do the following to create a region of interest with data values thresholded for bone:
- Select the Define range option in the Range box on the ROI Tools panel, as shown below.

Make sure that the required image data is selected in the Image drop-down menu.
- Drag the left and/or right Range sliders to change the minimum and/or maximum values of the intensity range or enter the required values in the Selected range Min and Max edit boxes.

Note You can also make your adjustments on a histogram of the image data, as shown below.

Note You can also create an unbiased segmentation by clicking the Lower Otsu or Upper Otsu button.
- Verify the selected range on other images in the image stack and in other views of the data, recommended.
- Click the Add button to label all voxels that fall within the selected range.

Information about the region of interest is displayed on the Data Properties and Settings panel (see ROI Properties and Settings).
- Select the Define range option in the Range box on the ROI Tools panel, as shown below.
- Uncheck the Define range option in the Range box.
- Continue to the next section to learn how to refine the region of interest, if required.
In some cases, an initial threshold bone segmentation may contain unwanted objects, such as mounting aids, stray pixels, and noise. These issues should be addressed before you continue a bone analysis workflow.
You can apply the Process Islands options to remove unwanted objects, as described below, or you can use the ROI Painter tools to manually edit a threshold bone segmentation (see ROI Painter).
- Right-click the region of interest in the Data Properties and Settings panel and then choose Refine Region of Interest > Process Islands in the pop-up menu.

- Choose the required sub-menu item (see Processing Islands).
For example, you can isolate the largest object or objects in the region of interest by choosing Isolate (6-connected) nth First Biggest and then selecting the number of objects you want to keep.
The first step in processing an initial segmentation of mineralized bone is to create a filled region of interest that fully describes the cortical and trabecular areas. To properly fill a bone segmentation, you must make sure that it is first capped on all sides. For example, a bone shaft that may be open at one end after cropping.
- Scroll to the image slice that shows the most proximal or distal view of the open shaft, as shown below.
Note In some cases, you may have to create an oblique view to cap the segmentation (see Creating Oblique Views).
- Click the Segment tab on the left sidebar to access the ROI Painter panel.
- Select Single slice on the 2D views panel.

- Do the following to cap the initial segmentation with the Brush tools:
- Select the Round Brush
or Square Brush
tool, as required. - Select Full as the Brush type in the drop-down menu.
- Hold down Left Crtl, or your configured Add with key, on your keyboard. The cursor is now a painting brush.
- Change the diameter of the brush by rotating your mouse scroll wheel, as required.
- While holding down Left Crtl and your left mouse button, paint the area inside the region of interest.
Note You can remove areas from a region of interest by holding down Left Shift while painting.
Note You can also any of the other tools on the ROI Painter panel to cap the initial segmentation (see ROI Painter).
- Select the Round Brush
Closing the holes in an initial bone segmentation, including cortical pores and vascular canal inlets, and filling the inner areas of the segmentation, is required for separating cortical and trabecular bone.
Cortical pore (circled)
The output of this process is a filled region of interest, which is an input for separating cortical and trabecular bone.
Region of interest (Filled)… The segmentation of the filled area corresponding to the bone cortex and the marrow in which the holes of the bone segmentation are closed.
- Make sure that the region of interest is capped on all sides (see Capping an Initial Bone Segmentation).
- Enter the required threshold distance to close the cortical pores and vascular canal inlets in the Close holes smaller than edit box.

- Click the Fill button to start the automated routine.
- Wait for the process to be completed.
At the end of the process, a new region of interest 'BoneROI (Filled)' appears in the Data Properties and Settings panel.

- Verify the accuracy of the result, recommended.
- Edit the filled region of interest, if required.
See ROI Painter and other topics in Segmentation Tools for information about the segmentation tools available in Dragonfly for editing ROIs.
- Click Next to continue to the next segmentation step (see Separating Cortical and Trabecular Bone).
